Skip to content

boards/arm/mps/mps3-an547: keep the .userspace section - #22695

Open
anjiahao1 wants to merge 1 commit into
apache:masterfrom
anjiahao1:20261202_mps3-an547-userspace-keep
Open

anjiahao1 wants to merge 1 commit into
apache:masterfrom
anjiahao1:20261202_mps3-an547-userspace-keep

Conversation

@anjiahao1

Copy link
Copy Markdown
Contributor

Summary

user-space.ld for mps3-an547 places the .userspace section in the user
flash region. Without KEEP, --gc-sections can discard it, and the
kernel then finds no user-space image. Keep the section.

Impact

Board linker script only (boards/arm/mps/mps3-an547/scripts/user-space.ld);
affected configuration: mps3-an547:knsh.

Testing

  • tools/checkpatch.sh -c -u -m passes.
  • tools/configure.sh mps3-an547:knsh && make -j$(nproc) builds successfully
    with the kernel and user-space images linked by the updated script.

@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: arm labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The kernel locates the user-space image from the .userspace section.
Without KEEP, --gc-sections can discard it from the user link and the
kernel then finds no user-space image.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
@anjiahao1
anjiahao1 force-pushed the 20261202_mps3-an547-userspace-keep branch from e937b95 to 07acd27 Compare December 2, 2026 08:41
@anjiahao1

Copy link
Copy Markdown
Contributor Author

The earlier Linux (arm-nxp) failure is the same master-wide lx_cpu/nsh flash overflow (148/164 bytes), unrelated to the mps3-an547 linker script change. Retested after a re-push; will rebase again once master regains headroom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants